<?php
	$obj=new Menu();
	$mod=new Module();
	$obj->loadByKey($id);
	
	include("FCKeditor/fckeditor.php");
?>
<form name="f" action="?module=<?php echo $module?>&action=process&mode=edit" method="post" enctype="multipart/form-data">
<div class="ContentTitle">
    <div class="left" style="padding-top:8px"><?php echo $objModule->ModuleName?></div>
    <div class="CMSButton right">
        <a onclick="f.submit()">Save</a>
        <a href="?module=<?php echo $module?>">Cancel</a>
    </div>    
    <div class="clear"></div>
</div>
<ul id="ContentTabs" class="shadetabs">
    <li><a id="linkTab1" onclick="ShowHideDiv('Tab',1,2,'link')" class="selected">Content</a></li>
    
</ul>  

<div class="clear"></div>
<div id="Tab1" class="TabContainer ngt_Product" >
	<input type="hidden" name="MenuID" value="<?php echo $obj->MenuID?>"/>
    <table width="100%" border="1">
        <tr>
            <td width="10%">
                Menu Name:
            </td>
            <td>
                <?php echo $obj->MenuName?>
            </td>
        </tr>
        <tr>
            <td width="10%">
                Tóm tắt:
            </td>
            <td>
                
                <?php
                $oFCKeditor = new FCKeditor('Summary');
                $oFCKeditor->BasePath = 'FCKeditor/';
                $oFCKeditor->Width  = '100%' ;
                $oFCKeditor->Height = '300' ;
                $oFCKeditor->Value = $obj->Summary;
                $oFCKeditor->Create() ; 
                ?>
            </td>
        </tr>
        <tr> 
            <td colspan="2">
                <?php
                $oFCKeditor = new FCKeditor('MenuDetail');
                $oFCKeditor->BasePath = 'FCKeditor/';
                $oFCKeditor->Width  = '100%' ;
                $oFCKeditor->Height = '300' ;
                $oFCKeditor->Value = $obj->MenuDetail;
                $oFCKeditor->Create() ; 
                ?>
            </td>
        </tr>
    </table>
     
</div> 
<div class="clear"></div>




<!-------------END CONTENT OF EACH MODULE ---------------------------->

</form>